<template>
	<view class="page">
		<!-- 导航栏 -->
		<view class="navbar">
			<view class="navbar-content">
				<view class="back-button" @click="goBack">
					<uni-icons type="back" size="30" color="#ffff"></uni-icons>
				</view>
				<text class="navbar-title">订单详情</text>
			</view>
		</view>
		
		<!-- 蓝色背景区域 -->
		<view class="blue-background"></view>
		
		<!-- 主内容容器 -->
		<view class="main-content">
			<!-- 支付成功内容 -->
			<view class="payment-success">
				<view class="success-icon-container">
					<image class="success-icon" src="/static/车联网服务-01专业洗车-08洗车-订单支付_slices/对 拷贝.png" mode="aspectFit"></image>
				</view>
				<text class="success-title">支付成功</text>
				<text class="payment-amount">39.90</text>
				<text class="reservation-number">预约编号: 324252536363634</text>
				<view class="button-group">
					<view class="primary-button" @click="goToHome">
						<text class="button-text">返回首页</text>
					</view>
					<view class="secondary-button">
						<text class="button-text">订单详情</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goBack() {
				uni.navigateBack();
			},
			goToHome() {
				uni.switchTab({
					url: '/pages/index/index'
				});
			}
		}
	}
</script>

<style>
	.page {
		background-color: #f5f6fa;
		min-height: 100vh;
		position: relative;
	}
	
	/* 导航栏 */
	.navbar {
		width: 100%;
		height: 88rpx;
		background: linear-gradient(120deg, #1f78ff 0%, #2f89ff 100%);
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.navbar-content {
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		position: relative;
		padding: 0 24rpx;
	}
	
	.back-button {
		position: absolute;
		left: 24rpx;
		width: 60rpx;
		height: 60rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.navbar-title {
		color: #ffffff;
		font-size: 32rpx;
		font-weight: 600;
		text-align: center;
		width: 100%;
	}
	
	/* 蓝色背景区域 */
	.blue-background {
		position: absolute;
		top: 88rpx;
		left: 0;
		width: 100%;
		height: 200rpx;
		background: linear-gradient(120deg, #1f78ff 0%, #2f89ff 100%);
	}
	
	/* 主内容容器 */
	.main-content {
		position: absolute;
		top: 100rpx;
		left: 50%;
		transform: translateX(-50%);
		width: 94%;
		max-width: 750rpx;
		z-index: 10;
		padding: 20rpx 0;
	}
	
	/* 支付成功内容 */
	.payment-success {
		background: #ffffff;
		border-radius: 20rpx;
		padding: 60rpx 40rpx 40rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.1);
	}
	
	.success-icon-container {
		width: 160rpx;
		height: 160rpx;
		background: linear-gradient(135deg, #4a9eff 0%, #1f78ff 100%);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 50rpx;
		box-shadow: 0 8rpx 24rpx rgba(31, 120, 255, 0.3);
	}
	
	.success-icon {
		width: 160rpx;
		height: 160rpx;
	}
	
	.success-title {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		margin-bottom: 30rpx;
	}
	
	.payment-amount {
		color: #333333;
		font-size: 48rpx;
		font-weight: 600;
		margin-bottom: 40rpx;
	}
	
	.reservation-number {
		color: #666666;
		font-size: 26rpx;
		margin-bottom: 80rpx;
	}
	
	.button-group {
		display: flex;
		flex-direction: column;
		gap: 24rpx;
		width: 100%;
	}
	
	.primary-button {
		background: #1f78ff;
		border-radius: 50rpx;
		padding: 20rpx 0;
		width: 100%;
		box-shadow: 0 4rpx 12rpx rgba(31, 120, 255, 0.3);
	}
	
	.secondary-button {
		background: #e0e0e0;
		border-radius: 50rpx;
		padding: 20rpx 0;
		width: 100%;
	}
	
	.button-text {
		color: #ffffff;
		font-size: 30rpx;
		font-weight: 500;
	}
</style>
